package com.hk.alipay.security;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.security.authentication.AuthenticationDetailsSource;


/**
 * @author kevin
 * @date 2019-7-18 17:57
 */
public record AliPayAuthenticationDetailsSource()
        implements AuthenticationDetailsSource<HttpServletRequest, AliPayAuthenticationDetails> {

    @Override
    public AliPayAuthenticationDetails buildDetails(HttpServletRequest context) {
        return new AliPayAuthenticationDetails(context);
    }
}
